﻿@using Sweepids.Models.Object

@{ var sessionUser = (User) Session["User"]; }

<!DOCTYPE html>
<html>
<head>
    <title>Sweepids</title>
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="~/Content/jquery.dataTables.css" rel="stylesheet" media="screen">
    <link href="~/Content/Site.css" rel="stylesheet" media="screen">
    
    
    <script src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script src="~/Scripts/bootstrap.min.js"></script>
    <script src="~/Scripts/jquery.dataTables.min.js"></script>
</head>
<body>
    <div id="container">
        <div id="title_bar" class="row">
            <div class="span7">
                <img id="logo" src="http://images.wikia.com/conearth/images/9/90/Broom_icon.png" width="100" height="100" />
                <h1 id="logo_text">Sweepids</h1>
            </div>
            <div id="account_info" class="span3">
                <p>@sessionUser.Username | @sessionUser.SweepsOwned sweeps | <a href="~/Login/Logout">logout</a></p>
            </div>
        </div>
        <div class="navbar">
            <div class="navbar-inner">
                <ul class="nav">
                    @if (sessionUser.IsAdmin)
                    {
                        <li class="@ViewBag.ManageUsersActive"><a href="~/ManageUsers/">Manage Users</a></li>
                        <li class="@ViewBag.ManageItemsActive"><a href="~/ManageItems/">Manage Items</a></li>
                        <li class="@ViewBag.SettingsActive"><a href="~/Settings/">Settings</a></li>
                    }
                    else
                    {
                        <li class="@ViewBag.HomeActive"><a href="~/Home/">Home</a></li>
                        <li class="@ViewBag.SearchActive"><a href="~/Search/">Search</a></li>
                        <li class="@ViewBag.SettingsActive"><a href="~/Settings/">Settings</a></li>
                    }
                </ul>
            </div>
        </div>
        <div id="content">
            @RenderBody()
        </div>
    </div>
</body>
</html>
